Optimal. Leaf size=77 \[ \frac {8 x^3}{75}-\frac {54 x^2}{125}+\frac {1331 (247 x+443)}{96875 \left (5 x^2+3 x+2\right )}-\frac {10769 \log \left (5 x^2+3 x+2\right )}{6250}+\frac {1466 x}{625}+\frac {3819607 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{96875 \sqrt {31}} \]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.240, Rules used = {1660, 1657, 634, 618, 204, 628} \begin {gather*} \frac {8 x^3}{75}-\frac {54 x^2}{125}+\frac {1331 (247 x+443)}{96875 \left (5 x^2+3 x+2\right )}-\frac {10769 \log \left (5 x^2+3 x+2\right )}{6250}+\frac {1466 x}{625}+\frac {3819607 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{96875 \sqrt {31}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 1657
Rule 1660
Rubi steps
\begin {align*} \int \frac {\left (3-x+2 x^2\right )^3}{\left (2+3 x+5 x^2\right )^2} \, dx &=\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {1}{31} \int \frac {\frac {372701}{625}-\frac {230981 x}{625}+\frac {37882 x^2}{125}-\frac {2604 x^3}{25}+\frac {248 x^4}{5}}{2+3 x+5 x^2} \, dx\\ &=\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {1}{31} \int \left (\frac {45446}{625}-\frac {3348 x}{125}+\frac {248 x^2}{25}+\frac {121 (2329-2759 x)}{625 \left (2+3 x+5 x^2\right )}\right ) \, dx\\ &=\frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {121 \int \frac {2329-2759 x}{2+3 x+5 x^2} \, dx}{19375}\\ &=\frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}-\frac {10769 \int \frac {3+10 x}{2+3 x+5 x^2} \, dx}{6250}+\frac {3819607 \int \frac {1}{2+3 x+5 x^2} \, dx}{193750}\\ &=\frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}-\frac {10769 \log \left (2+3 x+5 x^2\right )}{6250}-\frac {3819607 \operatorname {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )}{96875}\\ &=\frac {1466 x}{625}-\frac {54 x^2}{125}+\frac {8 x^3}{75}+\frac {1331 (443+247 x)}{96875 \left (2+3 x+5 x^2\right )}+\frac {3819607 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{96875 \sqrt {31}}-\frac {10769 \log \left (2+3 x+5 x^2\right )}{6250}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 77, normalized size = 1.00 \begin {gather*} \frac {8 x^3}{75}-\frac {54 x^2}{125}+\frac {1331 (247 x+443)}{96875 \left (5 x^2+3 x+2\right )}-\frac {10769 \log \left (5 x^2+3 x+2\right )}{6250}+\frac {1466 x}{625}+\frac {3819607 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{96875 \sqrt {31}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (3-x+2 x^2\right )^3}{\left (2+3 x+5 x^2\right )^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 88, normalized size = 1.14 \begin {gather*} \frac {9610000 \, x^{5} - 33154500 \, x^{4} + 191815600 \, x^{3} + 22917642 \, \sqrt {31} {\left (5 \, x^{2} + 3 \, x + 2\right )} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + 111226140 \, x^{2} - 31047027 \, {\left (5 \, x^{2} + 3 \, x + 2\right )} \log \left (5 \, x^{2} + 3 \, x + 2\right ) + 145678362 \, x + 109671738}{18018750 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 62, normalized size = 0.81 \begin {gather*} \frac {8}{75} \, x^{3} - \frac {54}{125} \, x^{2} + \frac {3819607}{3003125} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {1466}{625} \, x + \frac {1331 \, {\left (247 \, x + 443\right )}}{96875 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} - \frac {10769}{6250} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 61, normalized size = 0.79 \begin {gather*} \frac {8 x^{3}}{75}-\frac {54 x^{2}}{125}+\frac {1466 x}{625}+\frac {3819607 \sqrt {31}\, \arctan \left (\frac {\left (10 x +3\right ) \sqrt {31}}{31}\right )}{3003125}-\frac {10769 \ln \left (5 x^{2}+3 x +2\right )}{6250}-\frac {121 \left (-\frac {2717 x}{775}-\frac {4873}{775}\right )}{625 \left (x^{2}+\frac {3}{5} x +\frac {2}{5}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 62, normalized size = 0.81 \begin {gather*} \frac {8}{75} \, x^{3} - \frac {54}{125} \, x^{2} + \frac {3819607}{3003125} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {1466}{625} \, x + \frac {1331 \, {\left (247 \, x + 443\right )}}{96875 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}} - \frac {10769}{6250} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.43, size = 61, normalized size = 0.79 \begin {gather*} \frac {1466\,x}{625}-\frac {10769\,\ln \left (5\,x^2+3\,x+2\right )}{6250}+\frac {\frac {328757\,x}{484375}+\frac {589633}{484375}}{x^2+\frac {3\,x}{5}+\frac {2}{5}}+\frac {3819607\,\sqrt {31}\,\mathrm {atan}\left (\frac {10\,\sqrt {31}\,x}{31}+\frac {3\,\sqrt {31}}{31}\right )}{3003125}-\frac {54\,x^2}{125}+\frac {8\,x^3}{75} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.19, size = 78, normalized size = 1.01 \begin {gather*} \frac {8 x^{3}}{75} - \frac {54 x^{2}}{125} + \frac {1466 x}{625} + \frac {328757 x + 589633}{484375 x^{2} + 290625 x + 193750} - \frac {10769 \log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{6250} + \frac {3819607 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{3003125} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________